lib_LTLIBRARIES =	libnbds.la

libnbds_la_SOURCES =	lifo.cpp			\
			fifo.cpp			\
			list.cpp			\
			map.cpp				\
			vector.cpp			\
			ref_ptr.cpp			\
			rcu.cpp				\
			thread_private.cpp		\
			hazard_pointer.cpp

noinst_HEADERS =	atomic.h		\
			mem_barrier.h		\
			types.h

EXTRA_libnbds_la_SOURCES =	atomic_i386.cpp		\
				mem_barrier_i386.cpp	\
				atomic_x86_64.cpp	\
				mem_barrier_x86_64.cpp
libnbds_la_LIBADD =	atomic_$(arch).lo		\
			mem_barrier_$(arch).lo
libnbds_la_DEPENDENCIES =	atomic_$(arch).lo	\
				mem_barrier_$(arch).lo

libnbds_la_CPPFLAGS =	-Werror
libnbds_la_LDFLAGS =	-version-info 0:0:0 -release 0.1 -lpthread

library_includedir =	$(includedir)/nbds
library_include_HEADERS =	type.h			\
				lifo.h			\
				fifo.h			\
				list.h			\
				map.h			\
				vector.h		\
				ref_ptr.h		\
				rcu.h			\
				thread_private.h	\
				hazard_pointer.h
